<div class="aside-left">
          <div id="accordion">
            <h3 class="head-title <?php if(strtolower($controller)=="users" ) echo 'current';?>">Users</h3>
            <ul class="sub-menu " <?php if(strtolower($controller)=="users" ) echo 'style="display:block"';?>>
              <li >
                <a href="<?php echo $this->Html->url("/users/admin_index"); ?>">List User</a>
              </li>
              <li >
                <a href="<?php echo $this->Html->url("/users/admin_add"); ?>">Add User</a>
              </li>
            </ul>
            <h3 class="head-title <?php if(strtolower($controller)=="dataparams" ) echo 'current';?>">
              <?php echo "Data Management Section A" ;?>
            </h3>
            <ul class="sub-menu " <?php if(strtolower($controller)=="dataparams" ) echo 'style="display:block"';?>>
              <li >
                <a href="<?php echo $this->Html->url("/DataParams/admin_index/"); ?>">List data</a>
              </li>
              <!--<li >
                <a href="<?php echo $this->Html->url("/DataParams/admin_add"); ?>">Add Category</a>
              </li>-->
              </ul>
              <h3 class="head-title <?php if(strtolower($controller)=="dataparambs" ) echo 'current';?>">
                <?php echo "Android App Data" ?>
              </h3>
              <ul class="sub-menu " <?php if(strtolower($controller)=="dataparambs" ) echo 'style="display:block"';?>>
                  <li >
                    <a href="<?php echo $this->Html->url("/DataParamBs/admin_index/"); ?>">List data</a>
                  </li>
                  <li >
                    <a href="<?php echo $this->Html->url("/DataParamBs/admin_add/"); ?>">Add data</a>
                  </li>
                 
              </ul>
            <!--
              <h3 class="head-title <?php if(strtolower($controller)=="markets" ) echo 'current';?>">
                 <?php echo OPERATION_MANA; ?>
              </h3>
              <ul class="sub-menu " <?php if(strtolower($controller)=="markets" ) echo 'style="display:block"';?>>
                  <li >
                    <a href="<?php echo $this->Html->url("/markets/admin_index/"); ?>">List Market
                  </li>
                  <li>
                              <a href="<?php echo $this->Html->url("/markets/admin_add/"); ?>">Add Market</a>
            
                  </li>
                 
              </ul> -->
              <h3 class="head-title <?php if(strtolower($controller)=="mrcodes" || strtolower($controller)=="pincodes"  || strtolower($controller)=="areacodes" ||strtolower($controller)=="stresscodes" ) echo 'current';?>">
                 <?php echo DATA_ELEMENTS;?>
              </h3>
              <ul class="sub-menu " <?php if(strtolower($controller)=="mrcodes" ||strtolower($controller)=="pincodes" ||strtolower($controller)=="areacodes" ||strtolower($controller)=="stresscodes" ) echo 'style="display:block"';?>>
                  <li >
                      <a href="<?php echo $this->Html->url("/MrCodes/admin_index/"); ?>">MR_CODE </a>
                  </li>
                  <li>
                              <a href="<?php echo $this->Html->url("/PinCodes/admin_index/"); ?>">Pin Code</a>
            
                  </li>
                   <li>
                              <a href="<?php echo $this->Html->url("/AreaCodes/admin_index/"); ?>">Area Code</a>
            
                  </li>
                  <li>
                              <a href="<?php echo $this->Html->url("/StressCodes/admin_index/"); ?>">Stress code</a>
            
                  </li>
                 
              </ul>
              
              
            
          </div>
        </div>
        		<script>
$("#accordion h3.head-title").click(function()
{
    $(this).addClass("current").next("ul.sub-menu").slideToggle(300).siblings("ul.sub-menu").slideUp("slow");
	$(this).siblings().removeClass("current");
    
    if ($(this).siblings("ul.sub-menu").length == 0) {
        window.location = $(this).find("a").attr("href");
    }
});
var current_selected = $("ul.sub-menu li").each(function(){
    check_class = $(this).attr("class");
    if (check_class=="current"){
        $(this).parent().attr("id", "ul_current");
        a = $("#ul_current").prev().addClass("current");
        $(this).parent().show();
    }
});


</script> 